﻿using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;
using Calendar.Models.Objects;

namespace JBSE.Models.FluentConfiguration
{
    public class EventConfiguration : EntityTypeConfiguration<Event>
    {
        public EventConfiguration()
        {
            Property(t => t.Id)
             .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            Property(d => d.Title).HasMaxLength(50);
        }
    }
}